/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package regulatoryInteractionsStats.yeast.bioJava;

/**
 *
 * @author jamie
 */
public class AlignableGenePair {

    private AlignableGene g1;
    private AlignableGene g2;

    public AlignableGenePair(AlignableGene g1, AlignableGene g2) {
        this.g1 = g1;
        this.g2 = g2;
    }

    public AlignableGene getG1() {
        return g1;
    }

    public AlignableGene getG2() {
        return g2;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final AlignableGenePair other = (AlignableGenePair) obj;
        if (this.g1 != other.g1 && (this.g1 == null || !this.g1.equals(other.g1))) {
            return false;
        }
        if (this.g2 != other.g2 && (this.g2 == null || !this.g2.equals(other.g2))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.g1 != null ? this.g1.hashCode() : 0);
        hash = 97 * hash + (this.g2 != null ? this.g2.hashCode() : 0);
        return hash;
    }

    
}
